home *** CD-ROM | disk | FTP | other *** search
/ Deutsche Edition 1 / Deutsche Edition 1.iso / amok / 081-090 / amok88 / arexxbox / test2.lha / test2 / rx_test2_rxcl.c < prev    next >
C/C++ Source or Header  |  1993-05-18  |  2KB  |  40 lines

  1. /*
  2.  * Source generated with ARexxBox 1.12 (May 18 1993)
  3.  * which is Copyright (c) 1992,1993 Michael Balzer
  4.  */
  5.  
  6. #include <exec/types.h>
  7. #include <dos/dos.h>
  8. #include <rexx/storage.h>
  9.  
  10. #define NO_GLOBALS
  11. #include "rx_test2.h"
  12.  
  13. #define RESINDEX(stype) (((long) &((struct stype *)0)->res) / sizeof(long))
  14.  
  15. char    RexxPortBaseName[80] = "TEST2";
  16. char    *rexx_extension = "TEST2";
  17.  
  18. struct rxs_command rxs_commandlist[] =
  19. {
  20.     { "ALIAS", "GLOBAL/S,NAME/A,COMMAND/F", NULL, 0, (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_alias, 1 },
  21.     { "CMDSHELL", "OPEN/S,CLOSE/S", NULL, 0, (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_cmdshell, 1 },
  22.     { "DISABLE", "GLOBAL/S,NAMES/M", NULL, 0, (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_disable, 1 },
  23.     { "ENABLE", "GLOBAL/S,NAMES/M", NULL, 0, (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_enable, 1 },
  24.     { "FAULT", "NUMBER/N/A", "DESCRIPTION", RESINDEX(rxd_fault), (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_fault, 1 },
  25.     { "HELP", "COMMAND,PROMPT/S", "COMMANDDESC,COMMANDLIST/M", RESINDEX(rxd_help), (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_help, 1 },
  26.     { "RX", "CONSOLE/S,ASYNC/S,COMMAND/F", "RC/N,RESULT", RESINDEX(rxd_rx), (void (*)(struct RexxHost *,void **,long,struct RexxMsg *)) rx_rx, 1 },
  27.     { NULL, NULL, NULL, NULL, NULL }
  28. };
  29.  
  30. int        command_cnt = 7;
  31.  
  32. static struct arb_p_link link0[] = {
  33.     {"RX", 1}, {"HELP", 2}, {"FAULT", 3}, {"ENABLE", 4}, {"DISABLE", 5}, {"CMDSHELL", 6},
  34.     {"ALIAS", 7}, {NULL, 0} };
  35.  
  36. struct arb_p_state arb_p_state[] = {
  37.     {-1, link0}, {6, NULL}, {5, NULL}, {4, NULL}, {3, NULL},
  38.     {2, NULL}, {1, NULL}, {0, NULL}  };
  39.  
  40.